{
 "cells": [
  {
   "cell_type": "code",
   "id": "initial_id",
   "metadata": {
    "collapsed": true,
    "ExecuteTime": {
     "end_time": "2025-08-19T16:05:53.092259Z",
     "start_time": "2025-08-19T16:04:32.773945Z"
    }
   },
   "source": [
    "from langchain_openai import ChatOpenAI\n",
    "import os\n",
    "llm = ChatOpenAI(\n",
    "    # 若没有配置环境变量，请用百炼API Key将下行替换为：api_key=\"sk-xxx\",\n",
    "    api_key=os.getenv(\"DASH_SCOPE_API_KEY\"), # 如何获取API Key：https://help.aliyun.com/zh/model-studio/developer-reference/get-api-key\n",
    "    base_url=\"https://dashscope.aliyuncs.com/compatible-mode/v1\",\n",
    "    model=\"qwen-plus\",\n",
    "    temperature=0.8,\n",
    "    max_tokens=60,\n",
    ")\n",
    "\n",
    "# 构建两个场景的模板\n",
    "flower_care_template = \"\"\"\n",
    "你是一个经验丰富的园丁，擅长解答关于养花育花的问题。\n",
    "下面是需要你来回答的问题:\n",
    "{input}\n",
    "\"\"\"\n",
    "\n",
    "flower_deco_template = \"\"\"\n",
    "你是一位网红插花大师，擅长解答关于鲜花装饰的问题。\n",
    "下面是需要你来回答的问题:\n",
    "{input}\n",
    "\"\"\"\n",
    "\n",
    "\n",
    "# 构建提示信息\n",
    "prompt_infos = [\n",
    "    {\n",
    "        \"key\": \"flower_care\",\n",
    "        \"description\": \"适合回答关于鲜花护理的问题\",\n",
    "        \"template\": flower_care_template,\n",
    "    },\n",
    "    {\n",
    "        \"key\": \"flower_decoration\",\n",
    "        \"description\": \"适合回答关于鲜花装饰的问题\",\n",
    "        \"template\": flower_deco_template,\n",
    "    }\n",
    "]\n",
    "\n",
    "# 构建目标链\n",
    "from langchain.chains.llm import LLMChain\n",
    "from langchain.prompts import PromptTemplate\n",
    "\n",
    "chain_map = {}\n",
    "\n",
    "for info in prompt_infos:\n",
    "    prompt = PromptTemplate(\n",
    "        template=info['template'],\n",
    "        input_variables=[\"input\"]\n",
    "    )\n",
    "    print(\"目标提示:\\n\", prompt)\n",
    "    \n",
    "    chain = LLMChain(\n",
    "        llm=llm,\n",
    "        prompt=prompt,\n",
    "        verbose=True\n",
    "    )\n",
    "    chain_map[info[\"key\"]] = chain\n",
    "    \n",
    "# 构建路由链\n",
    "from langchain.chains.router.llm_router import LLMRouterChain, RouterOutputParser\n",
    "from langchain.chains.router.multi_prompt_prompt import MULTI_PROMPT_ROUTER_TEMPLATE as RounterTemplate\n",
    "\n",
    "destinations = [f\"{p['key']}: {p['description']}\" for p in prompt_infos]\n",
    "print(\"提示词模板:\\n\",destinations)\n",
    "\n",
    "\n",
    "router_template = RounterTemplate.format(destinations=\"\\n\".join(destinations))\n",
    "print(\"路由模板:\\n\", router_template)\n",
    "\n",
    "router_prompt = PromptTemplate(\n",
    "    template=router_template,\n",
    "    input_variables=[\"input\"],\n",
    "    output_parser=RouterOutputParser(),\n",
    ")\n",
    "print(\"路由提示:\\n\", router_prompt)\n",
    "\n",
    "router_chain = LLMRouterChain.from_llm(\n",
    "    llm,\n",
    "    router_prompt,\n",
    "    verbose=True\n",
    ")\n",
    "\n",
    "# 构建默认链\n",
    "from langchain.chains import ConversationChain\n",
    "\n",
    "default_chain = ConversationChain(\n",
    "    llm=llm,\n",
    "    output_key=\"text\",\n",
    "    verbose=True\n",
    ")\n",
    "\n",
    "# 构建多提示链\n",
    "from langchain.chains.router import MultiPromptChain\n",
    "\n",
    "chain = MultiPromptChain(\n",
    "    router_chain=router_chain,\n",
    "    destination_chains=chain_map,\n",
    "    default_chain=default_chain,\n",
    "    verbose=True\n",
    ")\n",
    "\n",
    "# 测试1\n",
    "print(chain.run(\"如何为玫瑰浇水？\"))\n",
    "# 测试2              \n",
    "print(chain.run(\"如何为婚礼场地装饰花朵？\"))\n",
    "# 测试3         \n",
    "print(chain.run(\"如何区分阿豆和罗豆？\"))"
   ],
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "目标提示:\n",
      " input_variables=['input'] input_types={} partial_variables={} template='\\n你是一个经验丰富的园丁，擅长解答关于养花育花的问题。\\n下面是需要你来回答的问题:\\n{input}\\n'\n",
      "目标提示:\n",
      " input_variables=['input'] input_types={} partial_variables={} template='\\n你是一位网红插花大师，擅长解答关于鲜花装饰的问题。\\n下面是需要你来回答的问题:\\n{input}\\n'\n",
      "提示词模板:\n",
      " ['flower_care: 适合回答关于鲜花护理的问题', 'flower_decoration: 适合回答关于鲜花装饰的问题']\n",
      "路由模板:\n",
      " Given a raw text input to a language model select the model prompt best suited for the input. You will be given the names of the available prompts and a description of what the prompt is best suited for. You may also revise the original input if you think that revising it will ultimately lead to a better response from the language model.\n",
      "\n",
      "<< FORMATTING >>\n",
      "Return a markdown code snippet with a JSON object formatted to look like:\n",
      "```json\n",
      "{{\n",
      "    \"destination\": string \\ name of the prompt to use or \"DEFAULT\"\n",
      "    \"next_inputs\": string \\ a potentially modified version of the original input\n",
      "}}\n",
      "```\n",
      "\n",
      "REMEMBER: \"destination\" MUST be one of the candidate prompt names specified below OR it can be \"DEFAULT\" if the input is not well suited for any of the candidate prompts.\n",
      "REMEMBER: \"next_inputs\" can just be the original input if you don't think any modifications are needed.\n",
      "\n",
      "<< CANDIDATE PROMPTS >>\n",
      "flower_care: 适合回答关于鲜花护理的问题\n",
      "flower_decoration: 适合回答关于鲜花装饰的问题\n",
      "\n",
      "<< INPUT >>\n",
      "{input}\n",
      "\n",
      "<< OUTPUT (must include ```json at the start of the response) >>\n",
      "<< OUTPUT (must end with ```) >>\n",
      "\n",
      "路由提示:\n",
      " input_variables=['input'] input_types={} output_parser=RouterOutputParser() partial_variables={} template='Given a raw text input to a language model select the model prompt best suited for the input. You will be given the names of the available prompts and a description of what the prompt is best suited for. You may also revise the original input if you think that revising it will ultimately lead to a better response from the language model.\\n\\n<< FORMATTING >>\\nReturn a markdown code snippet with a JSON object formatted to look like:\\n```json\\n{{\\n    \"destination\": string \\\\ name of the prompt to use or \"DEFAULT\"\\n    \"next_inputs\": string \\\\ a potentially modified version of the original input\\n}}\\n```\\n\\nREMEMBER: \"destination\" MUST be one of the candidate prompt names specified below OR it can be \"DEFAULT\" if the input is not well suited for any of the candidate prompts.\\nREMEMBER: \"next_inputs\" can just be the original input if you don\\'t think any modifications are needed.\\n\\n<< CANDIDATE PROMPTS >>\\nflower_care: 适合回答关于鲜花护理的问题\\nflower_decoration: 适合回答关于鲜花装饰的问题\\n\\n<< INPUT >>\\n{input}\\n\\n<< OUTPUT (must include ```json at the start of the response) >>\\n<< OUTPUT (must end with ```) >>\\n'\n",
      "\n",
      "\n",
      "\u001B[1m> Entering new MultiPromptChain chain...\u001B[0m\n",
      "\n",
      "\n",
      "\u001B[1m> Entering new LLMRouterChain chain...\u001B[0m\n",
      "\n",
      "\u001B[1m> Finished chain.\u001B[0m\n",
      "flower_care: {'input': '如何为玫瑰浇水？'}\n",
      "\n",
      "\u001B[1m> Entering new LLMChain chain...\u001B[0m\n",
      "Prompt after formatting:\n",
      "\u001B[32;1m\u001B[1;3m\n",
      "你是一个经验丰富的园丁，擅长解答关于养花育花的问题。\n",
      "下面是需要你来回答的问题:\n",
      "如何为玫瑰浇水？\n",
      "\u001B[0m\n",
      "\n",
      "\u001B[1m> Finished chain.\u001B[0m\n",
      "\n",
      "\u001B[1m> Finished chain.\u001B[0m\n",
      "当然可以！作为一个经验丰富的园丁，我很高兴为你解答“如何为玫瑰浇水”这个问题。玫瑰是一种美丽而略显娇贵的花卉，正确的浇水方式对它的生长和开花至关重要。以下是一些科学而实用的浇水建议：\n",
      "\n",
      "---\n",
      "\n",
      "### 🌹 一、掌握浇水的基本原则\n",
      "\n",
      "**“见干见湿，浇则浇透”** 是给玫瑰浇水的黄金法则。\n",
      "\n",
      "- **见干见湿**：不是指土壤完全干透，而是表层土壤（约2-3厘米）干了就可以浇水。\n",
      "- **浇透**：每次浇水要渗透到根部，即至少浇到土壤下5-10厘米深，这样根系才会向下生长，增强抗旱能力。\n",
      "\n",
      "---\n",
      "\n",
      "### 🌞 二、根据季节调整浇水频率\n",
      "\n",
      "1. **春季（生长期）**\n",
      "   - 玫瑰开始发芽、长叶，需水量逐渐增加。\n",
      "   - 每周浇水1-2次，视天气而定。\n",
      "\n",
      "2. **夏季（盛夏高温）**\n",
      "   - 蒸发快，玫瑰生长旺盛，需水量大。\n",
      "   - 每2-3天浇一次，早晨或傍晚为宜，避免正午浇水导致叶片灼伤。\n",
      "   - 地栽玫瑰可适当覆盖稻草、树皮等保水材料。\n",
      "\n",
      "3. **秋季（花后恢复期）**\n",
      "   - 随着气温下降，减少浇水频率。\n",
      "   - 每周一次即可，帮助植株逐渐进入休眠状态。\n",
      "\n",
      "4. **冬季（休眠期）**\n",
      "   - 一般不需要浇水，除非特别干燥或温室中栽培。\n",
      "   - 注意防冻，避免根部受寒。\n",
      "\n",
      "---\n",
      "\n",
      "### 💧 三、浇水的方法技巧\n",
      "\n",
      "- **根部浇水为主**：避免直接浇在叶片和花朵上，以防病害（如黑斑病、白粉病）。\n",
      "- **使用室温水或井水**：避免用冰凉的自来水，尤其是夏季，最好放置一段时间再使用。\n",
      "- **喷雾辅助**（仅限早晨）：在空气特别干燥时，可以清晨喷雾增加湿度，但不要在傍晚喷水。\n",
      "\n",
      "---\n",
      "\n",
      "### 🌱 四、不同栽培方式的浇水要点\n",
      "\n",
      "- **盆栽玫瑰**：\n",
      "  - 更容易干透，也容易积水，要特别注意排水孔是否通畅。\n",
      "  - 可用手指插入土中判断是否需要浇水。\n",
      "- **地栽玫瑰**：\n",
      "  - 根系更发达，抗旱能力更强，浇水可稍微少一些，但每次要浇透。\n",
      "\n",
      "---\n",
      "\n",
      "### ⚠️ 五、常见错误与注意事项\n",
      "\n",
      "- ❌ **频繁浅浇**：导致根系浮在表层，不耐旱。\n",
      "- ❌ **积水烂根**：盆底积水或土壤排水差容易导致根腐。\n",
      "- ❌ **叶片积水过夜**：容易引发真菌病害。\n",
      "- ❌ **忽略天气变化**：雨天不要浇水，连续阴雨天要防积水。\n",
      "\n",
      "---\n",
      "\n",
      "### ✅ 小贴士\n",
      "\n",
      "- 可以在土壤中埋入一个湿度计，帮助判断是否需要浇水。\n",
      "- 每次浇水后适当松土，促进根系呼吸。\n",
      "- 结合施肥时，最好在浇水后进行，避免烧根。\n",
      "\n",
      "---\n",
      "\n",
      "如果你能根据玫瑰的生长周期、季节和土壤情况灵活调整浇水方式，你的玫瑰一定会生长得更加健康、花色鲜艳。如果你愿意，我还可以根据你所在地区、玫瑰品种进一步给出个性化建议哦！\n",
      "\n",
      "祝你种出美丽的玫瑰花园🌹\n",
      "\n",
      "\n",
      "\u001B[1m> Entering new MultiPromptChain chain...\u001B[0m\n",
      "\n",
      "\n",
      "\u001B[1m> Entering new LLMRouterChain chain...\u001B[0m\n",
      "\n",
      "\u001B[1m> Finished chain.\u001B[0m\n",
      "flower_decoration: {'input': '如何为婚礼场地装饰花朵？'}\n",
      "\n",
      "\u001B[1m> Entering new LLMChain chain...\u001B[0m\n",
      "Prompt after formatting:\n",
      "\u001B[32;1m\u001B[1;3m\n",
      "你是一位网红插花大师，擅长解答关于鲜花装饰的问题。\n",
      "下面是需要你来回答的问题:\n",
      "如何为婚礼场地装饰花朵？\n",
      "\u001B[0m\n",
      "\n",
      "\u001B[1m> Finished chain.\u001B[0m\n",
      "\n",
      "\u001B[1m> Finished chain.\u001B[0m\n",
      "嗨，亲爱的花艺爱好者们！我是你们的网红插花大师🌸，今天要来和大家分享一个超级浪漫的话题——**如何为婚礼场地装饰花朵**！无论你是新娘新娘新郎，还是婚礼策划师，亦或是花艺师，这篇指南都能帮你打造出一个美轮美奂的花艺婚礼现场。\n",
      "\n",
      "---\n",
      "\n",
      "## 🌹婚礼花艺装饰全攻略：从入门到惊艳！\n",
      "\n",
      "---\n",
      "\n",
      "### 一、确定主题与风格\n",
      "\n",
      "婚礼花艺装饰的第一步，不是买花，而是**确定主题和风格**。花艺要和婚礼整体风格统一，才能打造出视觉和谐的浪漫氛围。\n",
      "\n",
      "#### 常见婚礼风格 & 花艺搭配建议：\n",
      "\n",
      "| 婚礼风格 | 花艺风格 | 推荐花材 |\n",
      "|----------|-----------|-----------|\n",
      "| 浪漫森系 | 自然、清新、绿意盎然 | 尤加利叶、绣球、洋甘菊、铃兰 |\n",
      "| 法式复古 | 高贵、优雅、层次丰富 | 玫瑰、牡丹、奥斯汀玫瑰、郁金香 |\n",
      "| 现代简约 | 干净利落、线条感强 | 马蹄莲、洋桔梗、百合、几何花器 |\n",
      "| 中式传统 | 富贵大气、红金主色调 | 康乃馨、百合、桔梗、腊梅、红掌 |\n",
      "| 波西米亚 | 自由奔放、色彩丰富 | 向日葵、大丽花、雏菊、羽毛、藤编元素 |\n",
      "\n",
      "📌 **小贴士**：确定风格后，建议制作一个**婚礼花艺灵感板**（Pinterest 或 moodboard），方便与花艺师沟通。\n",
      "\n",
      "---\n",
      "\n",
      "### 二、婚礼花艺装饰的五大区域\n",
      "\n",
      "#### 1. **迎宾区**  \n",
      "迎宾区是宾客的第一印象，建议用**花墙或花门**来打造视觉焦点。\n",
      "\n",
      "- 推荐组合：玫瑰+尤加利+绣球\n",
      "- 装饰形式：花墙、签到背景、花篮、花柱\n",
      "\n",
      "#### 2. **仪式区**  \n",
      "仪式区是整场婚礼的高潮所在，花艺布置要**庄重又浪漫**。\n",
      "\n",
      "- 花拱门：使用玫瑰、绣球、铁线莲等打造梦幻花门\n",
      "- 花亭/花架：适合户外婚礼，搭配绿叶与花材缠绕\n",
      "- 地面花艺：可用花毯、花球点缀\n",
      "\n",
      "#### 3. **宴会区**  \n",
      "餐桌花艺是细节的关键，既要美观，又不能遮挡视线。\n",
      "\n",
      "- 主桌花艺：可稍高一些，层次丰富\n",
      "- 宾客桌花：以低矮花艺为主，如花球、花盒、玻璃瓶插花\n",
      "- 推荐搭配：玫瑰+洋桔梗+尤加利叶，搭配蜡烛或灯串点缀\n",
      "\n",
      "#### 4. **通道与走道**  \n",
      "走道两侧可以摆放**花柱、花瓶、花灯**，营造出仪式感。\n",
      "\n",
      "- 花柱：适合室内或户外\n",
      "- 地面花球：可点缀在走道两侧\n",
      "- 可加入灯光元素，如小灯串或小灯笼\n",
      "\n",
      "#### 5. **细节装饰区**  \n",
      "别忘了这些小细节也能加分：\n",
      "\n",
      "- 椅背花：适合婚礼仪式区或宴会区\n",
      "- 签到台：搭配花艺和名字牌\n",
      "- 甜品台：点缀小型花艺或水果花艺组合\n",
      "- 新娘捧花：根据新娘礼服风格搭配，如瀑布型、圆型、自然型等\n",
      "\n",
      "---\n",
      "\n",
      "### 三、花材选择与搭配技巧\n",
      "\n",
      "#### ✅ 选择原则：\n",
      "- **应季花材**更便宜、更新鲜（如春：郁金香；夏：绣球；秋：大丽花；冬：银叶菊）\n",
      "- **主花+配花+绿叶**三层次搭配，让花艺更立体\n",
      "- **颜色统一**：建议不超过3种主色调，搭配1~2种点缀色\n",
      "\n",
      "#### 🎨 色彩搭配小灵感：\n",
      "\n",
      "| 主色 | 辅色 | 搭配花材 |\n",
      "|------|------|----------|\n",
      "| 白色 | 粉色 + 绿叶 | 百合 + 绣球 + 尤加利 |\n",
      "| 香槟金 | 米白 + 浅绿 | 玫瑰 + 洋桔梗 + 银叶菊 |\n",
      "| 红色 | 金色 + 绿叶 | 红玫瑰 + 康乃馨 + 松柏 |\n",
      "| 蓝紫色 | 白色 + 绿叶 | 鼠尾草 + 飞燕草 + 洋甘菊 |\n",
      "\n",
      "---\n",
      "\n",
      "### 四、预算控制小技巧 💰\n",
      "\n",
      "- **优先布置视觉焦点区域**（如仪式区、迎宾区）\n",
      "- **重复使用花艺元素**：如仪式区花艺可挪到晚宴区\n",
      "- **选用仿真花或半真半仿组合**：既节省成本，又美观持久\n",
      "- **搭配干花或水果装饰**：增加层次感，同时节省预算\n",
      "\n",
      "---\n",
      "\n",
      "### 五、花艺布置时间安排\n",
      "\n",
      "| 时间节点 | 建议内容 |\n",
      "|----------|----------|\n",
      "| 提前1个月 | 确定花艺师、沟通设计稿、下单 |\n",
      "| 提前1周 | 最终确认花材与布置图 |\n",
      "| 婚礼前1天 | 布置仪式区、迎宾区、花墙等大型花艺 |\n",
      "| 婚礼当天早上 | 布置宴会区、捧花、胸花、桌花等 |\n",
      "\n",
      "---\n",
      "\n",
      "## 🎉结语：鲜花，是婚礼最温柔的告白\n",
      "\n",
      "亲爱的们，婚礼花艺不只是装饰，它更是情感的表达，是爱情的见证。只要你用心去搭配，每一朵花都能诉说你们的故事。\n",
      "\n",
      "如果你还在为婚礼花艺犯愁，欢迎在评论区留言或私信我，我可以帮你定制专属花艺方案哦 💐💌\n",
      "\n",
      "---\n",
      "\n",
      "📣 **互动时间**：  \n",
      "你梦想中的婚礼是什么风格？你最喜欢哪种婚礼花材？欢迎留言告诉我，我会为你推荐专属花艺搭配方案！\n",
      "\n",
      "#婚礼花艺 #婚礼布置 #鲜花艺术 #插花大师 #浪漫婚礼 #森系婚礼 #花艺灵感\n",
      "\n",
      "\n",
      "\u001B[1m> Entering new MultiPromptChain chain...\u001B[0m\n",
      "\n",
      "\n",
      "\u001B[1m> Entering new LLMRouterChain chain...\u001B[0m\n",
      "\n",
      "\u001B[1m> Finished chain.\u001B[0m\n",
      "None: {'input': '如何区分阿豆和罗豆？'}\n",
      "\n",
      "\u001B[1m> Entering new ConversationChain chain...\u001B[0m\n",
      "Prompt after formatting:\n",
      "\u001B[32;1m\u001B[1;3mThe following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know.\n",
      "\n",
      "Current conversation:\n",
      "\n",
      "Human: 如何区分阿豆和罗豆？\n",
      "AI:\u001B[0m\n",
      "\n",
      "\u001B[1m> Finished chain.\u001B[0m\n",
      "\n",
      "\u001B[1m> Finished chain.\u001B[0m\n",
      "这是个很有趣的问题！“阿豆”和“罗豆”这两个词听起来像是中文里带有一些地方特色或昵称的叫法，但它们并不是正式的术语或广泛通用的分类。要准确区分它们，可能需要结合具体的语境来看。不过我可以从几个角度来帮你分析一下：\n",
      "\n",
      "---\n",
      "\n",
      "### 1. **从字面意义来看**\n",
      "\n",
      "- **阿豆**：  \n",
      "  “阿”在中文里常用作人名或昵称的前缀，带有亲昵、亲切的语气。比如“阿明”、“阿芳”、“阿强”。所以“阿豆”可能是一个昵称，用来称呼一个叫“豆”的人，或者一个体型小、可爱的人，也可能是宠物名。  \n",
      "  在一些地区，“豆”也可以用来形容小孩子长得可爱、圆滚滚的，所以“阿豆”可能是家人的爱称。\n",
      "\n",
      "- **罗豆**：  \n",
      "  “罗”是一个姓氏，比如“罗志祥”、“罗云熙”。“罗豆”可能是姓“罗”的人，名字叫“豆”，也可能是昵称。  \n",
      "  另一种可能是，“罗豆”是某种特定称呼，比如网络用语、地方俚语，或者某种特定圈子（如动漫、游戏、美食圈）里的术语。\n",
      "\n",
      "---\n",
      "\n",
      "### 2. **从地区方言或文化背景来看**\n",
      "\n",
      "- 在**南方方言**（如粤语、闽南语）中，“阿”作为前缀非常常见，比如“阿妹”、“阿哥”。所以“阿豆”更可能出现在这类方言文化中，作为昵称。\n",
      "- “罗豆”听起来更像是一个复合词，有可能是某种特定食物、人物、甚至是一个地方的称呼，但需要更多上下文来判断。\n",
      "\n",
      "---\n",
      "\n",
      "### 3. **是否有特定的指代对象？**\n",
      "\n",
      "有时候“阿豆”和“罗豆”可能指的是：\n",
      "\n",
      "- **某个影视角色**：比如动画片里有叫“阿豆”的主角，或者某部剧里有个叫“罗豆”的配角。\n",
      "- **网络红人或虚拟人物**：比如在B站、抖音、小红书上，有些人会起“阿豆”或“罗豆”作为网名。\n",
      "- **宠物名**：有些主人会给自己的猫或狗起“阿豆”或“罗豆”这样的名字，听起来可爱又接地气。\n",
      "\n",
      "---\n",
      "\n",
      "### 4. **如果是食物呢？**\n",
      "\n",
      "如果你是在问**豆类食品**，那可能：\n",
      "\n",
      "- “阿豆”可能是指某种品牌或店铺的名称，比如“阿豆豆浆”、“阿豆豆腐坊”。\n",
      "- “罗豆”也可能是某种豆类的别称，或者是某个地方特产的名字，但目前没有明确的资料表明“罗豆”是某一种特定豆类。\n",
      "\n",
      "---\n",
      "\n",
      "### 总结一下：\n",
      "\n",
      "| 词语 | 可能含义 | 特点 |\n",
      "|------|----------|------|\n",
      "| 阿豆 | 昵称、昵称式称呼 | 亲切、口语化、可能用于人或宠物 |\n",
      "| 罗豆 | 昵称、人名、品牌名 | 可能包含姓氏“罗”，也可能是品牌或地方特色称呼 |\n",
      "\n",
      "---\n",
      "\n",
      "如果你能提供更多上下文（比如你是在哪看到的、是在说什么事、说谁），我可以帮你更准确地判断“阿豆”和“罗豆”到底指什么，以及如何区分它们哦！😊\n"
     ]
    }
   ],
   "execution_count": 3
  },
  {
   "metadata": {},
   "cell_type": "code",
   "outputs": [],
   "execution_count": null,
   "source": "",
   "id": "678bbef697d5ebc4"
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
